package com.bkaka.service;

import com.bkaka.entity.ExamChapter;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by maxiaoqiang on 2018/9/3.
 */
public interface ExamChapterService {

    // 查找所有类别
    List<ExamChapter> findAll();

    // 添加类别
    void create(ExamChapter category);

    // 删除
    boolean delete(@Param("id") Integer id);

    // 更新
    void update(ExamChapter category);

    // 根据类别ID查找
    List<ExamChapter> findByChapter(@Param("id") Integer id);
}
